package com.ap.core.jaxb;

/**
 * The Class UnmarshalledData.
 */
public class UnmarshalledData {

    /** The name. */
    private final String name;
    
    /** The value. */
    private final Object value;
    
    /**
     * Constructor.
     * 
     * @param name Name identifying the unmarshalled object (e.g. QName for XML)
     * @param value Unmarshalled object
     */
    public UnmarshalledData(String name, Object value) {
        this.name = name;
        this.value = value;
    }
    
    /**
     * Get the name of the object.
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * Get the unmarshalled object.
     *
     * @return object
     */
    public Object getValue() {
        return value;
    }
    
}
